package com.karry.yl.domain.personnel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 培训记录
 *
 * @author Administrator
 */
public class Train extends SuperEntity {

    /**
     * 培训名称
     */
    private String trainName;

    /**
     * 培训时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date trainDate;

    /**
     * 培训机构
     */
    private String trainOrganization;


    /**
     * 培训成绩
     */
    private String trainGrade;

    /**
     * 培训证明多个用逗号隔开
     */
    private String trainImg;

    /**
     * 机构id
     */
    private  Long orgId;

    /**
     * 参加培训的从业人员ID
     */
    private Long employeeId;

    /**
     * 参加培训的从业人员姓名
     */
    private String employeeName;

    @TableField(exist = false)
    private String trainImg1;

    @TableField(exist = false)
    private String trainImg2;


    public Train(String trainName, Date trainDate, String trainOrganization, String trainGrade, Long orgId, Long employeeId, String employeeName) {
        this.trainName = trainName;
        this.trainDate = trainDate;
        this.trainOrganization = trainOrganization;
        this.trainGrade = trainGrade;
        this.orgId = orgId;
        this.employeeId = employeeId;
        this.employeeName = employeeName;
    }

    public Train() {
    }

    public String getTrainImg() {
        return trainImg;
    }

    public void setTrainImg(String trainImg) {
        this.trainImg = trainImg;
    }

    public String getTrainName() {
        return trainName;
    }

    public void setTrainName(String trainName) {
        this.trainName = trainName;
    }

    public Date getTrainDate() {
        return trainDate;
    }

    public void setTrainDate(Date trainDate) {
        this.trainDate = trainDate;
    }

    public String getTrainOrganization() {
        return trainOrganization;
    }

    public void setTrainOrganization(String trainOrganization) {
        this.trainOrganization = trainOrganization;
    }

    public String getTrainGrade() {
        return trainGrade;
    }

    public void setTrainGrade(String trainGrade) {
        this.trainGrade = trainGrade;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }


    public String getTrainImg1() {
        return trainImg1;
    }

    public void setTrainImg1(String trainImg1) {
        this.trainImg1 = trainImg1;
    }

    public String getTrainImg2() {
        return trainImg2;
    }

    public void setTrainImg2(String trainImg2) {
        this.trainImg2 = trainImg2;
    }

    @Override
    public String toString() {
        return "Train{" +
                "trainName='" + trainName + '\'' +
                ", trainDate=" + trainDate +
                ", trainOrganization='" + trainOrganization + '\'' +
                ", trainGrade='" + trainGrade + '\'' +
                ", orgId=" + orgId +
                ", employeeId=" + employeeId +
                ", employeeName='" + employeeName + '\'' +
                '}';
    }
}
